function iframe_height(width,height) {
	if (!height) {
		var height = document.getElementById('bodyheight').scrollHeight;
	}
	if (!width) {
		var width = document.getElementById('bodyheight').offsetWidth;
	}
	$('#top_src').attr('src', "../ms.html?"+height+'|'+width+'|');
}
 
function selectall(name) {
	if ($("#check_box").prop('checked')) {
		$("input[name='"+name+"']").each(function() {
  			$(this).attr("checked","checked");
		});
	} else {
		$("input[name='"+name+"']").each(function() {
  			$(this).removeAttr("checked");
		});
	}
}

function confirm_delete(){
	if(confirm('您确认要删除选择的项目吗?')) $('#content_form').submit();
}
